package cn.com.zero.manager.gateway;

import cn.com.zero.manager.gateway.config.CustomProperty;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author Yang Yao
 * @version 1.0.0
 * @Description
 * @createTime 2023/2/27 16:21
 */
@SpringBootApplication(scanBasePackages = {"cn.com.zero"})
@EnableAsync
@EnableDiscoveryClient
@EnableConfigurationProperties(CustomProperty.class)
public class ZeroManagerGatewayApplication {

    public static void main(String[] args) {
        // 添加此项配置，让sentinel识别为网关服务
        System.setProperty("csp.sentinel.app.type", "1");
        SpringApplication.run(ZeroManagerGatewayApplication.class, args);
    }
}
